public class Client {
    public static void main(String[] args) {
        Approver director = new Director("总经理");
        Approver vicePresident = new VicePresident("部长");
        Approver president = new President("董事长");
        Approver congress = new Congress("开会");

        director.setSuccessor(vicePresident);
        vicePresident.setSuccessor(president);
        president.setSuccessor(congress);

        PurchaseRequest request1 = new PurchaseRequest(3000, 1, "办公软件购买");
        director.processRequest(request1);

        PurchaseRequest request2 = new PurchaseRequest(7000, 2, "办公电脑采购");
        director.processRequest(request2);

        PurchaseRequest request3 = new PurchaseRequest(20000, 3, "公司日常用品采购");
        director.processRequest(request3);

        PurchaseRequest request4 = new PurchaseRequest(60000, 4, "工厂设备采购");
        director.processRequest(request4);
    }
}